import Http from 'utils/request'

const context = process.env.VUE_APP_CONSOLE_PATH

const API = {
  timeShareAllHistoryOrderList: '/order/timeShareAllHistoryOrderList', // 时租订单列表
  returnTheCar: '/order/returnTheCar', // 时租还车
  carRentOrderList: '/order/carRentOrderList', // 时租还车
  carRentOrderCar: '/order/carRentOrderCar', // 时租还车
  queryReturnCarImage: '/order/queryReturnCarImage' // 查看还车图片
}

/**
 * 通用接口请求方法
 * @param {*} param
 */
export const fetch = (url, param = {}, opt = {}) => Http.fetch(context + API[url], param, opt)
